'use strict';
const Router = require('koa-router')
const Config = require('../config')
const AuthController = require('../controllers')
const routes = new Router({
    prefix:Config.auth_prefix
})
routes.post('/login',AuthController.Auth.login);
routes.post('/register',AuthController.Auth.register);
routes.get('/getInfo/:userId',AuthController.Auth.getInfo);
routes.get('/getAllUser',AuthController.Auth.getAllUser);
routes.post('/createUserInfo',AuthController.Auth.createUserInfo);
routes.post('/changepassword',AuthController.Auth.changepassword);
module.exports = routes;

